/**
 * 
 * @author Kyung Hwan Kim
 * created Oct 18, 2008
 * copyright 2008 by kk2367@columbia.edu
 */

package edu.columbia.ubms.ejb;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class LoginBean {
	 private String userid;
	 private String passwd;
	 private String _userid;
	 private String _passwd;
	 public LoginBean() {
		 
	 _userid = "ubms";	 
	 _passwd = "1234";
	 }
	 
	 @PersistenceContext
	    EntityManager em;
	 
	 public LoginBean(String id, String pass)
	 {
		 userid = id;
		 passwd = pass;
		 _userid = "ubms";
		 _passwd = "1234";
	 }

	 
	 //
	 public boolean checkUser() {
	 if(userid.equals(_userid)&&passwd.equals(_passwd))
	  return true;
	 else
	  return false;
	 }
	public void setUserid(String userid) {this.userid = userid;}
	public void setPasswd(String passwd) {this.passwd = passwd;}
	public String getUserid() {return userid;}
	public String getPasswd() {return passwd;}
}

